package com.sz.biz.common.sup.service;

import com.sz.biz.common.sup.entity.SupUser;
import com.sz.common.base.dto.QResultDto;

import java.util.List;

/**
 * Function: TODO: ADD FUNCTION <br>
 * Author: Johnboy <br>
 * Date: 2017-10-11 14:46:00
 */
public interface SupplierUserService {

    int save(SupUser entry);

    void batchSave(List<SupUser> list);

    void batchDelete(List<Integer> ids);

    void lockSupplierUser(List<Integer> ids);

    void unlockSupplierUser(List<Integer> ids);

    void updateSupplierUser(List<SupUser> list);

    void resetUsersPasswd(List<Integer> userIds);

    boolean checkMobilePhoneExist(Integer userId,String mobilePhone);

    SupUser findByAccountName(String accountName);

    void changePassword(int id, String oldPassword,String password);


    /**
     * 查找用户
     *
     * @param
     */
    QResultDto find(String q, int pageIndex, int pageSize, String sortName,
                                boolean isAsc, int refCustomerId);
}
